package com.hfjyz.registration.dao;

import java.util.List;

import com.hfjyz.registration.model.Master;

public class MasterDaoImpl extends BaseDaoImpl<Master, Integer> implements
		MasterDao {

	protected MasterDaoImpl() {
		super(Master.class);
	}

	@SuppressWarnings("unchecked")
	@Override
	public List<Master> list(int category) throws Exception {
		return getHibernateTemplate().find(
				"from Master as master where master.id.category = ?", category);
	}

}
